// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** 点赞或取消点赞 POST /api/likes */
export async function addLikeRecordUsingPost(
  body: API.LikeRecordFormDTO,
  options?: { [key: string]: any }
) {
  return request<any>('/api/likes', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 查询指定业务id的点赞状态 GET /api/likes/isLiked */
export async function isBizLikedUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.isBizLikedUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/likes/isLiked', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}
